package com.foruo.learn.designmode.command.command;

import com.foruo.learn.designmode.command.ICommand;
import com.foruo.learn.designmode.command.IReceiver;

public class CommandB implements ICommand{

    private IReceiver receiver;

    public CommandB(IReceiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.doExecute();
    }
}
